extern crate alg;
use alg::array::palindrom;
pub fn main(){
    assert_eq!(palindrom(&vec!('a','a')),2);
    assert_eq!(palindrom(&vec!('a','b','a')),3);
    assert_eq!(palindrom(&vec!('c','h','a','r','a','c','t','e','r')),5);
    assert_eq!(palindrom(&vec!('c','f','f','c')),4);
    assert_eq!(palindrom(&vec!('c','c','c')),3);
    println!("ok");
}
